package com.chaoxuan.uebt.utils;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.chaoxuan.uebt.R;

public class Loading extends Dialog{

        public Loading(Context context, int themeResId) {
            super(context, themeResId);
        }


        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.layout_dialog4);
            ImageView loading=(ImageView) findViewById(R.id.img_loading);
            Glide.with(getContext()).load(R.mipmap.loading).asGif().diskCacheStrategy(DiskCacheStrategy.ALL).into(loading);
            setCanceledOnTouchOutside(false);
        }

}
